document.addEventListener('DOMContentLoaded', function () {
    var market = new Vue({
        el: '.market-list',
        data: {
            markets:[
                {name: '告别的仪式', price: '58', src: 'images/title/title1.jpg'},
                {name: '《日本色气》《日本侘寂》', price: '96', src: 'images/title/title2.jpg'},
                {name: '如何用手机拍一部电影', price: '52', src: 'images/title/title3.jpg'},
                {name: '《陌生人音乐》《火焰》', price: '96', src: 'images/title/title4.jpg'},
                {name: '杜尚', price: '98', src: 'images/title/title5.jpg'},
                {name: '跑步圣经（女性版）', price: '66', src: 'images/title/title6.jpg'},
                {name: '猫咪之歌', price: '59', src: 'images/title/title7.jpg'},
                {name: '魔术师时代', price: '60', src: 'images/title/title8.jpg'},
                {name: 'OPUS 作品', price: '66', src: 'images/title/title9.jpg'},
                {name: '小城畸人', price: '36', src: 'images/title/title10.jpg'},
                {name: '东京艺术之旅（套装共5册）', price: '168', src: 'images/title/title11.jpg'},
                {name: '绝对笑喷之弃业医生日志', price: '40', src: 'images/title/title12.jpg'},
                {name: '冰与火之歌图像小说（全四卷）', price: '348', src: 'images/title/title13.jpg'},
                {name: '聊天记录', price: '39', src: 'images/title/title14.jpg'},
                {name: '最后的访谈 系列', price: '132', src: 'images/title/title15.jpg'},
                {name: '恋爱是一件小题大做的事', price: '43.5', src: 'images/title/title16.jpg'},
                {name: '皇城猫语', price: '52', src: 'images/title/title17.jpg'},
                {name: '桃子手记', price: '112', src: 'images/title/title18.jpg'},
                {name: '赖声川剧作集', price: '218', src: 'images/title/title19.jpg'},
                {name: '狂想人生：皇后乐队传', price: '62', src: 'images/title/title20.jpg'}
            ],
        },
        // filters: {
        //     formatePrice(price) {
        //         return '¥' + price;
        //     }
        // }
    });
    var find =new Vue({
        el: '.find-list',
        data: {
            find: [
                {title: '小波看书', color: '#FFAC2D'},
                {title: '村上春树周边', color: '#FF4055'},
                {title: '我凭名字认定了你', color: '#42BD56'},
                {title: '不可饶恕的女人们', color: '#FFC46C'},
                {title: '爱欲书', color: '#3BA94D'},
                {title: '他们还写侦探小说', color: '#4F9DED'},
                {title: '人生识字始忧患', color: '#2384E8'},
                {title: '詩歌書店', color: '#CC3344'},
            ]
        }
    });
    var cate = new Vue({
        el: '.cate-list',
        data: {
            cates: [
                {name:'小说', href:'#'},
                {name:'爱情', href:'#'},
                {name:'历史', href:'#'},
                {name:'外国文学', href:'#'},
                {name:'青春', href:'#'},
                {name:'励志', href:'#'},
                {name:'随笔', href:'#'},
                {name:'传记', href:'#'},
                {name:'推理', href:'#'},
                {name:'旅行', href:'#'},
                {name:'奇幻', href:'#'},
                {name:'经管', href:'#'},
            ]
        }
    });
})